#!/bin/bash
source /usr/local/backups/config

if [ -z $1 ]; then
	echo "Missing collection as param 1"
	echo "Possible collections:"
	cat $COLLECTION_LIST
	exit
fi

if [ -z $2 ]; then
	echo "Missing target dir for restore as param 2"
	exit
fi

if [ ! -d $2 ]; then
	if ! mkdir -p $2; then
		echo "$2 is not a dir or does not exist... and cannot mkdir $2"
		exit
	fi
fi

#$DUPLICITY restore $DEST_ROOT/$1 $2

